<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>证书添加</title>
        <meta name="keywords" content=""/>
        <meta name="description" content=""/>
        <meta http-equiv="X-UA-Compatible" content="IE=7"/>
        <link rel="stylesheet" type="text/css" href="css/reset.css" />
        <link rel="stylesheet" type="text/css" href="css/myresume.css" />
    </head>
    <body>
        <div id="interactive-box" class="dialog" style="min-width: 770px; z-index: 99999; left: 247px; top: 552px; width: auto;">
            <div class="top">
                <div class="corner"></div>
            </div>
            <div class="body">
                <div class="client">
                    <form method="post" action="?c=MyResume&a=ITAdd">
                        <input type="hidden" value="<?= $uid ?>" name="userid">
                        <input type="hidden" value="<?= $type ?>"name="type" />
                        <div class="dialog-content picksection" id="itskill-dialog-content">

                            <div id="itSkill-dialog-content-pickarea">
                                <div style="display:none;" id="itSkill-dialog-selected">
                                    <h2>已选择: </h2>
                                    <ul style="width:692px;" class="selected clearfix"></ul>
                                </div>
                                <div class="pool">
                                    <h3 class="b">常用:</h3>
                                    <?php
                                    //var_dump($itSkill);exit;
                                        $index = 0;
                                        foreach($itSkill['common'] as $it_k=>$it_v){
                                            if($index % 5 == 0){
                                                echo '<div class="foldable">';
                                            }

                                            if(in_array($it_k, $id_arr)){
                                                echo '<span class="checkable">
                                            <input type="checkbox" id="wholeworld-q-itSkill-'.$it_k.'-checkbox" name="itid[]" value="'.$it_k.'" class="checkbox" checked><label for="wholeworld-q-itSkill-'.$it_k.'-checkbox" class="checkbox">'.$it_v.'</label>
                                        </span>';
                                            }else{
                                               echo '<span class="checkable">
                                            <input type="checkbox" id="wholeworld-q-itSkill-'.$it_k.'-checkbox" name="itid[]" value="'.$it_k.'" class="checkbox"><label for="wholeworld-q-itSkill-'.$it_k.'-checkbox" class="checkbox">'.$it_v.'</label>
                                        </span>';
                                            }


                                            if(($index+1) % 5 == 0){
                                                echo '</div>';
                                            }

                                            $index++;
                                        }
                                    ?>
                                    
                                    <div class="clearfix"></div>
                                    <div id="itgroup">
                                        <h3 style="margin-top:8px;" class="b">其他:</h3>
                                        <?php
                                            $index2 = 0;
                                            foreach($itSkill['group'] as $g_k=>$g_v){
                                                if($index2 % 5 == 0){
                                                    echo '<div class="foldable">';
                                                }

                                                echo '<span class="checkable close" id="'.$g_k.'">
                                                <input type="checkbox" style="display:none" value="'.$g_k.'" name="itSkill" id="wholeworld-itSkill-'.$g_k.'-checkbox" class="checkbox"><label class="checkbox" for="wholeworld-itSkill-'.$g_k.'-checkbox">'.$g_v.'</label>
                                            </span>';


                                                if(($index2+1) % 5 == 0){
                                                    echo '</div>';
                                                }

                                                $index2++;
                                            }
                                            if($index2 % 5 != 0){
                                                echo '</div>';
                                            }


                                            foreach ($itSkill['groupSkill'] as $group_k => $group_v) {
                                                echo '<div id="itSkill-'.$group_k.'" style="display:none" class="lowlevel clearfix">
                    <ul class="clearfix">';
                                                foreach ($group_v as $g_k => $g_v) {
                                                    if(in_array($g_k, $id_arr)){
                                                        echo '<li class="checkable">
                                                            <input type="checkbox" id="wholeworld-itSkill-'.$g_k.'-checkbox" value="'.$g_k.'" name="itid[]" class="checkbox" checked>
                                                            <label for="wholeworld-itSkill-'.$g_k.'-checkbox" class="checkbox">'.$g_v.'</label>
                                                          </li>';
                                                    }else{
                                                        echo '<li class="checkable">
                                                            <input type="checkbox" id="wholeworld-itSkill-'.$g_k.'-checkbox" value="'.$g_k.'" name="itid[]" class="checkbox">
                                                            <label for="wholeworld-itSkill-'.$g_k.'-checkbox" class="checkbox">'.$g_v.'</label>
                                                          </li>';
                                                    }
                                                }
                                                echo '</ul></div>';
                                            }

                                        ?>
                                    </div>
                                </div>
                                
                            </div>

                        </div>
                        <div class="error">&nbsp;</div>
                        <div class="inputdiv_btn">
                            <button class="big-default" type="submit"><span><span>确定</span></span></button>
                            <button type="button" class="normal" onclick="self.parent.tb_remove()"><span><span>取消</span></span></button>
                        </div>
                        <div class="bottom"><div class="corner"></div></div>
                    </form>
                </div>
            </div>
        </div>
        <script language="javascript" src="js/jquery.js"></script>
        <script language="javascript" src="js/layeffect.js"></script>
    </body>
</html>
